<extend file='resource/admin/base'/>
<block name="content">
	<ul class="nav nav-tabs">
		<li role="presentation" class="active"><a href="#">密码修改</a></li>
	</ul>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">密码修改</h3>
        </div>
        <div class="panel-body">
            <form action="" method="post" class="form-horizontal" role="form" onsubmit="return post(event)">
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">管理员账号</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="" placeholder="" disabled="disabled" value="{{Session::get('admin.admin_username')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">请输入原始密码</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" name="admin_password" id="" placeholder="请输入原始密码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label" >请输入新密码</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" name="new_password" id="" placeholder="请输入新密码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">请输入确认密码</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" name="retry_password" id="" placeholder="确认密码">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button type="submit" class="btn btn-primary">Submit</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <script>
        function post(event) {
            event.preventDefault();
            require(['util'], function (util) {
                util.submit({
                    successUrl:"refresh",
                });
            });
        }
    </script>

</block>



